package com.fasteat.mall.quartz;

/**
 * 任务规则
 */
public class Rule {

	private String jobName; // 任务名
	private String jobGroupName; // 任务组名
	private Class jobClass; // Job类对象
	private String cronExpression; // Cron表达式

	public Rule(String jobName, String jobGroupName, Class jobClass, String cronExpression) {
		this.jobName = jobName;
		this.jobGroupName = jobGroupName;
		this.jobClass = jobClass;
		this.cronExpression = cronExpression;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroupName() {
		return jobGroupName;
	}

	public void setJobGroupName(String jobGroupName) {
		this.jobGroupName = jobGroupName;
	}

	public Class getJobClass() {
		return jobClass;
	}

	public void setJobClass(Class jobClass) {
		this.jobClass = jobClass;
	}
}
